import request from '@/utils/request'

// 查询常量字典表列表
export function listDictItem(query) {
  return request({
    url: '/system/DictItem/list',
    method: 'get',
    params: query
  })
}

// 查询常量字典表详细
export function getDictItem(sort) {
  return request({
    url: '/system/DictItem/' + sort,
    method: 'get'
  })
}

// 新增常量字典表
export function addDictItem(data) {
  return request({
    url: '/system/DictItem',
    method: 'post',
    data: data
  })
}

// 修改常量字典表
export function updateDictItem(data) {
  return request({
    url: '/system/DictItem',
    method: 'put',
    data: data
  })
}

// 删除常量字典表
export function delDictItem(sort) {
  return request({
    url: '/system/DictItem/' + sort,
    method: 'delete'
  })
}

// 导出常量字典表
export function exportDictItem(query) {
  return request({
    url: '/system/DictItem/export',
    method: 'get',
    params: query
  })
}
